<?

require_once("mysql.php");
require_once("login.php");
require_once("captcha.php");
require_once("session.php");

SESSION();

if (isset($_SESSION['userid'])) {
    logout($_SESSION['userid']);
}

clear_captcha();

session_unset();
session_destroy(); 

echo("<script> top.location.href='../index.php'</script>");
   
?>